package com.vben.system.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vben.common.mybatisplus.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户登陆日志表
 *
 * @author sunn
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_user_login_log")
@Data
public class SysUserLoginLog extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId
    private Long logId;

    private Long userId;

    private String username;

    private LocalDateTime loginTime;

    private String logoutFlag;

    private LocalDateTime logoutTime;

    private String clientIp;

    private String deviceInfo;

    private String browserInfo;

    private String loginStatus;

    private String loginId;
}